Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(1-3281): wraps the new datepicker in a dropdown #9169

Merged
merged 8 commits into from
Jan 29, 2025

Conversation

thomasheartman
Copy link
Contributor

@thomasheartman thomasheartman commented Jan 29, 2025

Wraps the datepicker in a popover, making it function largely the same as a dropdown list.

The dropdown displays one of:

  • "current month" if you've selected the current month
  • " " (e.g. "December 2024") if you've selected a month that isn't the current month
  • "Last n months" (e.g. "Last 3 months") if you have selected a range

Additionally, the range selections have been updated to span the whole row, aligning with the look of generic dropdown lists.

image

Like with the rest of this file (PeriodSelector), the code is rough and not according to Unleash standards. However, I'm prioritizing fast changes so UX can have a look before I clean up the code to switch to using styled components etc later. It's still behind a flag, so I'm not very worried about it.

Copy link

vercel bot commented Jan 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 2:16pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Jan 29, 2025 2:16pm

Copy link
Contributor

github-actions bot commented Jan 29, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link
Contributor

@daveleek daveleek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@thomasheartman thomasheartman merged commit f455683 into main Jan 29, 2025
11 checks passed
@thomasheartman thomasheartman deleted the feat(1-3281)/put-new-datepicker-in-dropdown branch January 29, 2025 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants